package com.example.paper.brean;

import com.example.db.Goods;
import com.example.mvp.model.BaseEntity;
import com.google.gson.Gson;

import java.io.Serializable;

public class LoginBean extends BaseEntity implements Serializable {

    /**
     * values : {"user_id":1,"user_img":"","user_integral":0,"user_name":"1621671737285","user_phone":123456789,"user_pwd":"abcdefg","user_sex":"保密"}
     */

    private String values;

    public Goods getValues() {
        if (values.isEmpty())
            return null;
        Goods goods = new Gson().fromJson(values, Goods.class);
        return goods;
    }

    public void setValues(String values) {
        this.values = values;
    }

}
